package com.itheima.Utils;

import com.itheima.domain.Role;

public class RoleCreate {
    public static Role create(String rolename,String gender,String department,String telephone){
        Role role = new Role();
        role.setRolename(rolename);
        role.setGender(gender);
        role.setDepartment(department);
        role.setTelephone(telephone);
        return role;
    }
    public static Role update(int id,double amount, double deduction, double salary){
        Role role = new Role();
        role.setAmount(amount);
        role.setDeduction(deduction);
        role.setSalary(salary);
        role.setId(id);
        return role;
    }
}
